package com.Lyf.order.feign;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;


//@FeignClient注解中写清楚要调用的微服务名字
//Feign中的接口需要与OrderController中的接口一致，包括接口名、参数列表以及返回结果
@FeignClient(value = "stock",url = "http://127.0.0.1:8001",path = "/stock")
public interface StockFeign {
    @GetMapping("/cutStock")
    String cutStock(int i);

    @GetMapping("/test")
    public String test();


}
